package com.tmt.om.action;

import org.eclipse.swt.SWT;

import com.bizvpm.bi.model.DataControlBuilder;
import com.bizvpm.bi.model.DataWidgetAction;
import com.sg.widgets.ImageResource;
import com.sg.widgets.MessageUtil;
import com.sg.widgets.Widgets;

public class DemoAction extends DataWidgetAction {

	public DemoAction() {
		setText("Demo Action");
		setImageDescriptor(Widgets
				.getImageDescriptor(ImageResource.COLLAPSE_16));
	}


	@Override
	public void run(DataControlBuilder builder) {
		MessageUtil.showToast(""+builder, SWT.ICON_INFORMATION);
	}

}